package com.liusaidh.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuditBlog对象：管理员审核的文章的实体类",description = "用于让管理员审核的文章的实体类，放有用户和文章的信息")
public class AuditBlog {
    @ApiModelProperty(value = "文章的id", name = "id", dataType = "Integer")
    private Integer id;
    @ApiModelProperty(value = "文章的标签")
    private String label;
    @ApiModelProperty(value = "用户id", name = "uid", dataType = "Integer")
    private Integer uid;
    @ApiModelProperty(value = "用户昵称", name = "username", dataType = "String")
    private String username;
    @ApiModelProperty(value = "用户的头像", name = "userAvatarUrl", dataType = "String")
    private String userAvatarUrl;
    @ApiModelProperty(value = "发布的时间", name = "time", dataType = "Integer")
    private String time;
    @ApiModelProperty(value = "文章的内容", name = "text", dataType = "String")
    private String text;
    @ApiModelProperty(value = "文章的点赞量", name = "likes", dataType = "Integer")
    private Integer likes;
    @ApiModelProperty(value = "文章的转发量", name = "transmit", dataType = "Integer")
    private Integer transmit;
    @ApiModelProperty(value = "文章的评论数", name = "comment", dataType = "Integer")
    private Integer comment;
    @ApiModelProperty(value = "转发时记录的信息", name = "message", dataType = "String")
    private String message;
    @ApiModelProperty(value = "文章的状态0，待审，1通过", name = "state", dataType = "Integer")
    private Integer state;
    @ApiModelProperty(value = "图片的地址，为一个数组，里面放的是图片的地址", name = "pictureUrl", dataType = "String[]")
    private String[] pictureUrl;
    @ApiModelProperty(value = "视频的地址，为一个数组，里面放的是视频的地址", name = "videoUrl", dataType = "String[]")
    private String[] videoUrl;

    public AuditBlog(Integer id, String username, String userAvatarUrl, String time, String text, String[] pictureUrl, String[] videoUrl) {
        this.id = id;
        this.username = username;
        this.userAvatarUrl = userAvatarUrl;
        this.time = time;
        this.text = text;
        this.pictureUrl = pictureUrl;
        this.videoUrl = videoUrl;
    }

    public AuditBlog( Integer transmit,Integer likes, Integer id, String username, String userAvatarUrl, String time, String text, String[] pictureUrl, String[] videoUrl) {
        this.id = id;
        this.username = username;
        this.userAvatarUrl = userAvatarUrl;
        this.time = time;
        this.text = text;
        this.likes = likes;
        this.transmit = transmit;
        this.pictureUrl = pictureUrl;
        this.videoUrl = videoUrl;
    }
}

